package com.yaoxuguang.concurrence.thread_state.waiting;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence.thread_state.new_runable_terminated_time_waiting
 * @Description: TODO
 * @date 2018年12月26日11:40
 */
public class Run {
    public static void main(String[] args) {
        try {
            MyThread myThread = new MyThread(new Object());
            myThread.start();
            Thread.sleep(1000);
            System.out.println("mythread state =="+myThread.getState());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
